//======================================================
/*
* @file     IOMutiplexing.h
* 
* @date     2012-12-04
*
* @author   jianmengai@gmail.com
*
* @version  0.1
*/
//======================================================

#ifndef _INCLUDE_IOMUTIPLEXING_H
#define _INCLUDE_IOMUTIPLEXING_H

#include "IOMutiplexingImpl.h"

class IOMutiplexing
{
public:
    IOMutiplexing();
    ~IOMutiplexing();
    int register_handler(const int fd, int flag, Event_Handler* handler);
    void remove_handler(const int fd);
    void run_event_loop();
protected:
    IOMutiplexingImpl* implementation_;
};

#endif
